<?php

use yii\db\Migration;
use yii\db\Schema;

class m161230_073740_alert_product_time extends Migration
{
    public function up()
    {

         $this->alterColumn('{{product}}', 'go_time',     Schema::TYPE_DATE. " NULL COMMENT '出发时间' ");
         $this->alterColumn('{{product}}', 'return_time', Schema::TYPE_DATE. " NULL COMMENT '返回时间' ");
    }

    public function down()
    {
        echo "m161230_073740_alert_product_time cannot be reverted.\n";

        return false;
    }

}
